using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace LHS.Core.TableInfo
{
    public class InfoPatients
    {
        public const string PATISN = "patISN";
        public const string PATID = "patID";
        public const string PATNAME = "patName";
        public const string PATBIRTHDATE = "patBirthDate";
        public const string PATAGE = "patAge";
        public const string PATSEX = "patSex";
        public const string PATADDRESS = "patAddress";
        public const string PATTEL = "patTel";
        public const string PATOCCUPATION = "patOccupation";
        public const string PATMOBILE = "patMobile";
        public const string PATHASPIC = "patHasPic"; //hinh anh cua patient (patient co hinh anh khong?) --edit 20091018

        public const string TABLENAME = "Patients";

        public static DataTable GetStructure()
        {
            DataTable dt = new DataTable();
            dt.Columns.Add(PATISN, typeof(int));
            dt.Columns.Add(PATID, typeof(string));
            dt.Columns.Add(PATNAME, typeof(string));
            dt.Columns.Add(PATBIRTHDATE, typeof(DateTime));
            dt.Columns.Add(PATAGE, typeof(int));
            dt.Columns.Add(PATSEX, typeof(string));
            dt.Columns.Add(PATADDRESS, typeof(string));
            dt.Columns.Add(PATTEL, typeof(string));
            dt.Columns.Add(PATOCCUPATION, typeof(string));
            dt.Columns.Add(PATMOBILE, typeof(string));
            dt.Columns.Add(PATHASPIC, typeof(int));

            dt.TableName = TABLENAME;
            return dt;
        }

    }
}
